<template>
  <div class="wrapper">
    <div class="main">
      <el-input placeholder="请输入待预测的视频" v-model="input" clearable="" class="inputArea"></el-input>
      <el-button type="primary" @click="getMsg" class="buttonArea">获取</el-button>
    </div>
    <div class="msg" v-if="msg">
      上传成功！
    </div>
  </div> 
</template>


<script>
export default {
  data() {
    return {
      input:'',
      msg:''
    }
  },

  created(){
  },

  methods:{
    getMsg(){
      this.msg = true;
      this.timer = setInterval(()=>{
        this.$router.push({ path: '/image'})
      },2000)
    }
  }
}  
</script>

<style>
.main{
  display: flex;
  justify-content: center;
  margin: 50px 0;
}
.inputArea{
  width: 400px;
}
.buttonArea{
  margin-left: 30px;
}
.msg{
  display: flex;
  justify-content: center;
  font-size: 26px;
}
</style>
